import 'package:flutter/material.dart';

import '../../app/res/app_color.dart';

/// * 作者: Tao
/// * 日期: 2025/11/6
/// * 时间: 13:55
/// * 描述: 公共标题空间（带箭头，允许点击跳转）
class CommonTitleNormalWidget extends StatelessWidget {
  /// 图片地址
  final String imageUrl;

  /// 标题
  final String title;

  /// 内容
  final String content;

  const CommonTitleNormalWidget(
      {Key? key, required this.imageUrl, required this.title, required this.content})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Image(image: AssetImage(this.imageUrl), height: 40.0),
        SizedBox(width: 8.0),
        Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text(this.title, style: TextStyle(fontSize: 15.0)),
            SizedBox(height: 1.0),
            Text(this.content, style: TextStyle(fontSize: 10.0, color: AppColor.grey500)),
          ],
        ),
      ],
    );
  }
}
